#!/bin/bash
echo "$0 - BEGIN"

# Determine the command and target.
COMMAND=$1
TARGET=$2

echo "COMMAND = $COMMAND"
echo "TARGET = $TARGET"

# Mount all of the user shares.
/usr/bin/smbh-mount-all

# Run the command on the target.
echo "running $COMMAND on $TARGET"
cd $HOME/mnt
$COMMAND $TARGET

echo "$0 - END"
exit 0
